/**
 * 
 */
package com.ssm.model.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.ssm.model.bean.SsmUsers;

import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
 * 
 * @author 危文涛<245108903@qq.com>
 * @version 2016年2月3日 下午2:20:42
 * @param <T>
 *
 */
public interface BaseMapper<T> extends Mapper<T>, MySqlMapper<T>  {

	@Update("update ${tablename} set status=${status} where id=${id}")
	public int updateStatus(@Param("tablename")String tablename,@Param("status") Integer status,@Param("id") Integer id);
	
	@Update("update ${tablename} set ${rule} where userId=${id}")
    public void Ssmupdate(@Param("tablename")String tablename,@Param("rule")String rule,@Param("id")int id);  

	
	
}
